"use client"; import { BannerRep } from "@/api/home"; import Box from "@/components/Box"; import { Swiper } from "antd-mobile"; import { FC } from "react"; interface Props { notices: BannerRep[]; } const HomeNoticeBar: FC = (props) => { const { notices } = props; console.log(`🚀🚀🚀🚀🚀-> in HomeNoticeBar.tsx on 11`, notices); return (
null} style={{ "--height": "0.4167rem" }} loop autoplay > {notices.map((notice, index) => (
))}
); }; export default HomeNoticeBar;